package ooday05homework;

public class StaticFinalDemo {
    public static void main(String[] args) {
        System.out.println(Loo.NUM);
        System.out.println(Loo.num);
        System.out.println(Loo.PI);
        Loo.num=2;
        System.out.println(Loo.num);
        //Loo.NUM=3;编译错误常量不能够被改变
    }
}

class Loo {
    public static int num =1;
    public static final int NUM=5;
    public static final double PI = 3.14159265;
}